/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.clwl.supervise.superviseapp.mapper.certificaReview;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clwl.supervise.superviseapp.beans.certificaReview.CertificaReviewSearchParams;
import com.clwl.supervise.superviseapp.beans.certificaReview.CertificaReviewVo;
import com.clwl.supervise.superviseapp.entity.supervise.JgCertificaReview;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * JG_CERTIFICA_REVIEW Mapper接口
 * @author: GuXueJian
 * @date 2023-10-13 13:49:07
 */
public interface JgCertificaReviewMapper extends BaseMapper<JgCertificaReview> {

    /**
     * 自定义分页查询
     * @param  page
     * @param  jgCertificaReview 实体类
     */
    Page<JgCertificaReview> findPage(IPage<JgCertificaReview> page,
                                      @Param("jgCertificaReview") JgCertificaReview jgCertificaReview,
                                      @Param("sql_filter") String sql_filter);

    /**
     * 通过ID查询
     * @param id 查询ID
     * @return
     */
    JgCertificaReview findJgCertificaReviewById(@Param("id") Long id);

    /**
     * 查询列表
     * @param jgCertificaReview 查询条件对象
     * @return
     */
    List<JgCertificaReview> findList(JgCertificaReview jgCertificaReview);

    /**
     * 查询列表
     * @param params 查询条件对象
     * @return
     */
    IPage<CertificaReviewVo> findCertificaReviewVoList(IPage<Map<String, Object>> page,@Param("params") CertificaReviewSearchParams params);


    String getMinCheckYear();
}
